package com.heima.stroke.handler.valuation;

public class FuelCostValuation implements Valuation {

    private Valuation valuation;

    public FuelCostValuation(Valuation valuation) {
        this.valuation = valuation;
    }

    @Override
    public float calculation(float km) {

        float baseCost = valuation.calculation(km);
        return baseCost + 1; // 加上燃油附加费

    }
}
